<template>
	<view class="goods_list">
		<view class="goods_list_item" v-for="item in goods" :key="item.iid">
			<image :src="item.show.img">
			</image>
			<view class="price">
				<text>{{item.price}}</text>
				<text>{{item.orgPrice}}</text>
			</view>
			<view class="title">
				{{item.title}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			goods: {
				type: Array,
				default () {
					return []
				}
			}
		}
	}
</script>

<style lang="scss">
	.goods_list {
		padding: 0 15rpx;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;

		.goods_list_item {
			background: #fff;
			width: 355rpx;
			margin: 10rpx 0;
			padding: 15rpx;
			box-sizing: border-box;

			image {
				width: 84%;
				height: 354rpx;
				display: block;
				margin: auto;
			}

			.price {
				color: $shop;
				font-size: 36rpx;
				margin: 20rpx 0 5rpx 0;

				text:nth-child(2) {
					color: #ccc;
					font-size: 24rpx;
					margin-left: 17rpx;
					text-decoration: line-through;
				}
			}

			.title {
				font-size: 32rpx;
				line-height: 48rpx;
				padding-bottom: 10rpx;
				padding-top: 10rpx;
			}
		}
	}
</style>
